package com.stellar.circle.constants;


import com.stellar.exception.ErrorCode;

/**
 * @Author Jqcc
 * @Version 1.0
 * @Data 2025/5/16
 * CIRCLE 错误码枚举
 * CIRCLE_POST_XXX 帖子管理
 * CIRCLE_LIKE_XXX 点赞管理
 */
public interface ErrorCodeConstants {

    /**
     * 帖子管理
     */
    ErrorCode CIRCLE_POST_NOT_EXIST = new ErrorCode(1_001_002_001, "帖子不存在");

    /**
     * 点赞管理
     */
    ErrorCode CIRCLE_LIKE_NOT_EXIST = new ErrorCode(1_001_003_001, "点赞不存在");

    /**
     * 评论管理
     */
    ErrorCode CIRCLE_COMMENT_NOT_EXIST = new ErrorCode(1_001_004_001, "评论不存在");

    /**
     * 闲置交易管理
     */
    ErrorCode CIRCLE_SIDLE_COMPLETED = new ErrorCode(1_001_005_001, "当前交易已经完成，无法关闭该交易");
    ErrorCode CIRCLE_POST_PIN_TIME_INVALID = new ErrorCode(1_001_005_002, "置顶时间无效");

    /**
     * 用户关系异常
     */
    ErrorCode CIRCLE_USER_RELATION_NOT_EXIST = new ErrorCode(1_001_006_001, "用户关系不存在");
    ErrorCode CIRCLE_USER_RELATION_EXIST = new ErrorCode(1_001_006_002, "用户关系已经存在");

    /**
     * 私聊异常
     */
    ErrorCode CIRCLE_USER_SAME = new ErrorCode(1_001_007_001, "发送者和接收者不能是同一个人");
    ErrorCode CIRCLE_USER_EMPTY = new ErrorCode(1_001_007_002, "发送者和接收者不能为空");

    /**
     * 业务异常
     */
    ErrorCode PIN_ORDER_CODE_GENERATE_ERROR = new ErrorCode(1_001_009_001, "置顶订单编号生成失败");
    ErrorCode CIRCLE_PARAM_EMPTY = new ErrorCode(1_001_09_002, "请求参数不能为空");
}
